#pragma once
#include <queue>
#include <sstream>
#include "MessageQ.h"

class Communicator
{
public:
	Time currentTime;
	priority_queue<MessageQ*,vector<MessageQ*>, MessageQ::greaterMessage > messageQueue;
	RandomGenerator generator;
	ofstream output;
	stringstream log;
	ofstream statsOnly;

	Communicator(Communicator & com);
	Communicator(void);
	~Communicator(void);

	void addMesage(MessageQ * msg){
		messageQueue.push(msg);
	}

	string toString();
};

